package gihub.hanlyjiang.hanlygithub.service;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * @author hanlyjiang on 2017/6/21-21:37.
 * @version 1.0
 */

public class OSCRequestor {

    private final String baseUrl = "http://git.oschina.net/api/";
    private Retrofit retrofit;

    public OSCRequestor() {
        this.retrofit = new Retrofit.Builder().baseUrl(baseUrl)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public OSCUserInterface newUserService() {
        return retrofit.create(OSCUserInterface.class);
    }


}
